package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.AccountWorkorder;
import com.ruoyi.system.mapper.AccountWorkOrderMapper;
import com.ruoyi.system.service.IAccountWorkOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AccountWorkOrderServiceImpl implements IAccountWorkOrderService {
    @Resource
    AccountWorkOrderMapper accountWorkOrderMapper;
    @Override
    public List<AccountWorkorder> selectWorkOrderList(AccountWorkorder workorder) {

        return accountWorkOrderMapper.selectWorkOrderList(workorder);
    }

    @Override
    public int insertWorkorder(AccountWorkorder workorder) {
        return accountWorkOrderMapper.insertWorkorder(workorder);
    }

    @Override
    public AccountWorkorder selectWorkorderById(Long pid) {
        return accountWorkOrderMapper.selectWorkorderById(pid);
    }

    @Override
    public int updateWorkorder(AccountWorkorder workorder) {
        return accountWorkOrderMapper.updateWorkorder(workorder);
    }

    @Override
    public int deleteWorkorderByIds(Long[] pids) {
        return accountWorkOrderMapper.deleteWorkorderByIds(pids);
    }
}
